#define TAG_TITLE 1
#define TAG_ALBUM 2
#define TAG_ARTIST 0
#define TAG_YEAR 3
#define TAG_GENRE 4
#define KEYMODE 0x00
#define DB2010 1
#define DB2020 2

int played=0, 
keyfix=0, 
skinimg=1,
nap2,
kl=0,
CurrentTime,
TimeLeft,
MIN_TimeLeft,
SEC_TimeLeft,
title, 
tleft,
artist,
tmrwrk = 0,
gcmem_xsize=0,
play,
screen_width,
platform=0,
skins_count;

IMG image[7];
IMG image1[1];
IMG imagep[6];

DISP_OBJ* g_DO=0;
DISP_OBJ *DO;

GVI_GC m_smilgc= NULL;
GVI_BRUSH m_br;

TRACK_DESC *ntrack;
TRACK_DESC *currenttrack=0;

u16 ftimer;
u16 WaitingTimer;

GC *GCanvas;
GC *gc;
GC *m_hMGC;

char error_code;

wchar_t * confpath = L"/card/other/AdvPlayer/skin/";
wchar_t imageID;
wchar_t * Tpath;
wchar_t * Tname;
wchar_t * ttl;
wchar_t * artst;
wchar_t TimeLeft1[16];
wchar_t *presets_files[]={
  L"eq_00.png",
  L"eq_01.png",
  L"eq_02.png",
  L"eq_03.png",
  L"eq_04.png",
  L"eq_05.png"
};
wchar_t skin_to_run[256];

void * MetaData_Desc;

int onBcfgConfig(void* mess,BOOK* b);
int AdvPlayerKeys (int key, int r1, int mode);
int onPlayTimer(void *message,BOOK* bk);
int OnOpenPlayer (void* msg, BOOK* book);
void walkman_Redraw(DISP_OBJ* DO,int a,int b,int c);
void DrawProgress(int bColor, int cColor, int oColor, RECT rect, int progress, int time, signed int PlusY, int type);
void onRedrTimer (u16 tmr , void *);
GUI_Board *CreateBoardGui(MyBOOK * MSBook);
u16 RegisterImage(IMG * i , wchar_t * path, wchar_t * fname);
